Gogs Installation

Learn about the configuration and installation of Gogs.

We'll cover the following

Step 1: Install Gogs#

Start the Gogs server:

  • Open a new terminal window
  • cd gogs
  • ./gogs web -port 8000
  • Minimize the terminal window
Starting the Gogs server

Commands

Command / Parameter

Description

cd /home/devops/dk/gogs

This changes to the directory where Gogs is installed.

./gogs web

This starts the Gogs server.

The Gogs Git server is preloaded to the LVM at /home/devops/dk/gogs. The ./gogs web command starts the Gogs server on port 3,000. We can minimize this terminal window while Gogs is running.

To install Gogs, we must do the following:

  • Start the browser by clicking the widget URL.
  • Select “SQLite3” from the “Database Type” drop-down.
  • Enter “root” in the “Run User” field.
  • Remove the “Application URL” and copy the widget URL. Place the widget URL “:8000/” in the “Application URL” field.
  • Scroll to the bottom and click the “Install Gogs” button.
Installing Gogs

The first time we access Gogs, it will prompt us to set it up. The SQLite3 database is a fast, file-based database system that’s suitable for a small team, or learning and experimenting. The “Run User” field is the user that Gogs will run as, so we set that to the “devops” current account.

Setting Up the DevOps Katas Learning Virtual Machine

Jenkins Setup